package cn.cvs.dao;

import cn.cvs.pojo.SysUser;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

public interface SysUserMapper {
    /**
     * 统计用户数量
     * @return
     */
    int count();

    List<SysUser> list();

    List<SysUser>selectList(String realName);

    List<SysUser>selectListByRealNameAndRoleId(@Param("realName") String realName,@Param("roleId") Integer roleId);

    List<SysUser>selectListByUser(SysUser sysUser);

    List<SysUser>selectListByMap(Map<String,Object> userMap);

    int add(SysUser sysUser);
}
